//
// phpGetImageInfo(theFilePath)
//
// Return 7 lines information about the given image file
//
// [1] Width
// [2] Height
// [3] Image Type
// [4] HTML width/height attributes string
// [5] Mime type
// [6] Num Channels (3 for RGB, 4 for CMYK)
// [7] Bits (bits per color)
//
// Example script usage:
//
// Set Variable[$imageInfo, Value: phpGetImageInfo($theImageFilePath)]
// #
// Set Variable[$imageType, Value: GetValue($imageInfo, 3)]
//
Let (
	[
		$theFilePath = theFilePath;

		phpCode = "error_reporting(0); //(E_ALL & ~E_NOTICE);¶
		¶
		$theFilePath = fm_evaluate('$theFilePath');¶
		¶
		$imageInfo = getimagesize($theFilePath);¶
		echo $imageInfo[0] . \"\r\" .$imageInfo[1] . \"\r\" . $imageInfo[2] . \"\r\" . $imageInfo[3] . \"\r\" . $imageInfo[mime] . \"\r\" . $imageInfo[channels] . \"\r\" . $imageInfo[bits] . \"\r\" ;¶
	  "
	] ;
	PHP_Execute(phpCode)
)